package cn.hrc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("t_order")
public class Order { //订单
    @TableId(value = "ordid",type = IdType.AUTO)
    private int ordid;
    private int uid;
    private double amount;
    @TableField("pay_status")
    private int payStatus;
    private String shipno;//快递单号
    private String ship2name;//收货人
    private String ship2phone;//收货人电话
    private String ship2addr;//收货人地址
    private String shipper;//快递公司
    private Date tship;//发货时间
    private Date tsign;//收货时间
    private Date tcreate;//创建时间

    @Override
    public String toString() {
        return "Order{" +
                "ordid=" + ordid +
                ", uid=" + uid +
                ", amount=" + amount +
                ", payStatus=" + payStatus +
                ", shipno='" + shipno + '\'' +
                ", ship2name='" + ship2name + '\'' +
                ", ship2phone='" + ship2phone + '\'' +
                ", ship2addr='" + ship2addr + '\'' +
                ", shipper='" + shipper + '\'' +
                ", tship=" + tship +
                ", tsign=" + tsign +
                ", tcreate=" + tcreate +
                '}';
    }

    public int getOrdid() {
        return ordid;
    }

    public void setOrdid(int ordid) {
        this.ordid = ordid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }

    public String getShipno() {
        return shipno;
    }

    public void setShipno(String shipno) {
        this.shipno = shipno;
    }

    public String getShip2name() {
        return ship2name;
    }

    public void setShip2name(String ship2name) {
        this.ship2name = ship2name;
    }

    public String getShip2phone() {
        return ship2phone;
    }

    public void setShip2phone(String ship2phone) {
        this.ship2phone = ship2phone;
    }

    public String getShip2addr() {
        return ship2addr;
    }

    public void setShip2addr(String ship2addr) {
        this.ship2addr = ship2addr;
    }

    public String getShipper() {
        return shipper;
    }

    public void setShipper(String shipper) {
        this.shipper = shipper;
    }

    public Date getTship() {
        return tship;
    }

    public void setTship(Date tship) {
        this.tship = tship;
    }

    public Date getTsign() {
        return tsign;
    }

    public void setTsign(Date tsign) {
        this.tsign = tsign;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }
}
